<If Loop>
   <IsFKey>
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using <Application>.<Business>;

namespace <Application>.<Data>
{

   <ExitLoop>
</If Loop>
<If Loop>
   <IsFKey>
    public class <OwnerU>_<TableU>_<ROwnerU>_<RTableU>DataClass<MiscTag>
    {
        public static DataTable Select<ROwnerU>_<RTableU>()
        {
            using (var context = new <Database>DBContext())
            {
                return context.<ROwnerU>_<RTableU>.ToList().ToDataTable<<ROwnerU>_<RTableU>>();
            }
        }
    }
</If Loop>

<If Loop>
   <IsFKey>
}
   <ExitLoop>
</If Loop>
